//
//  UILabel+Create.m
//  C2CMember
//
//  Created by yangy on 2018/7/2.
//  Copyright © 2018年 iphone. All rights reserved.
//

#import "UILabel+Create.h"

@implementation UILabel (Create)
+ (UILabel*) cm_labelWithText:(NSString*) text
                         font:(UIFont*) font
                    textColor:(UIColor*) color
{
    return [self cm_CreateLabelWithText:text font:font textColor:color textAlign:NSTextAlignmentLeft];
}

+ (UILabel*) cm_labelWithText:(NSString*) text
                         font:(UIFont*) font
                    textColor:(UIColor*) color
                    textAlign:(NSTextAlignment) align
{
    return [self cm_CreateLabelWithText:text font:font textColor:color textAlign:align];
}

+ (UILabel*) cm_CreateLabelWithText:(NSString*) text
                           font:(UIFont*) font
                      textColor:(UIColor*) color
                      textAlign:(NSTextAlignment) align
{
    UILabel *label = [[UILabel alloc] init];
    label.text = text;
    label.font = font;
    label.textColor = color;
    label.textAlignment = align;
    return label;
}
@end
